document.addEventListener('DOMContentLoaded', function () {
    // 向页面注入JS
    [
        'js/jquery-3.7.1.min.js',
        'js/axios.min.js',
        'js/banner.js',
        'js/interface.js',
        'js/utils.js',
        'js/exceljs.min.js',
        'js/taobao.js',
        'js/1688.js',
        'js/main.js',
        'js/pdd.js'
    ].forEach(jsPath => {
        const script = document.createElement('script')
        script.setAttribute('type', 'text/javascript')
        let jsFlie = chrome.runtime.getURL(jsPath)
        console.log("jsFile", jsFlie)
        script.src = jsFlie
        document.head.appendChild(script)
    })
})



